package lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author : wenchao.long
 * @date : Created in 2024-03-22 下午 5:02 周五
 * @description :
 */
public class AQSDemo {

	public static void main(String[] args) {
		ReentrantLock lock = new ReentrantLock();

		new Thread(() -> {
			try {
				lock.lock();
				System.out.println("---A thread come in");
			} finally {
				lock.unlock();
			}

		}, "A").start();
	}
}
